/*
 * Copyright 2009 Eat Local Food, LLC
 * Copyright (c) 2007 osCommerce (this file was written after
 * code review of osCommerce).
 *
 * This file is part of gwtCommerce.
 *
 * gwtCommerce is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License, or
 * (at your option) any later version.
 *
 * gwtCommerce is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with gwtCommerce.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.elf.gwt.common.client.model;

import java.util.Date;

/**
 *  
 */
public class AdvancedSearchModel
{
	protected boolean includeSubCategories;
	protected double priceFrom;
	protected double priceTo;
	protected Date dateFrom;
	protected Date dateTo;
	protected String keywords;
	protected boolean descriptionSearch;
	protected int offset;
	protected String orderby;
	protected boolean searchSpecials;
	
	public AdvancedSearchModel()
	{
		clear();
	}
	
	public void clear() {
		includeSubCategories = true;
		priceFrom = 0;
		priceTo = 0;
		dateFrom = null;
		dateTo = null;
		keywords = "";
		descriptionSearch = false;
		offset = 0;
		orderby = "pd.products_name";
		searchSpecials = false;
	}
	
	public Date getDateFrom() {
		return dateFrom;
	}
	public void setDateFrom(Date dateFrom) {
		this.dateFrom = dateFrom;
	}
	public Date getDateTo() {
		return dateTo;
	}
	public void setDateTo(Date dateTo) {
		this.dateTo = dateTo;
	}
	public boolean isDescriptionSearch() {
		return descriptionSearch;
	}
	public void setDescriptionSearch(boolean descriptionSearch) {
		this.descriptionSearch = descriptionSearch;
	}
	public boolean isIncludeSubCategories() {
		return includeSubCategories;
	}
	public void setIncludeSubCategories(boolean includeSubCategories) {
		this.includeSubCategories = includeSubCategories;
	}
	public String getKeywords() {
		return keywords;
	}
	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}
	public int getOffset() {
		return offset;
	}
	public void setOffset(int offset) {
		this.offset = offset;
	}
	public double getPriceFrom() {
		return priceFrom;
	}
	public void setPriceFrom(double priceFrom) {
		this.priceFrom = priceFrom;
	}
	public double getPriceTo() {
		return priceTo;
	}
	public void setPriceTo(double priceTo) {
		this.priceTo = priceTo;
	}

	public String getOrderby() {
		return orderby;
	}

	public void setOrderby(String orderby) {
		this.orderby = orderby;
	}

	public boolean isSearchSpecials() {
		return searchSpecials;
	}

	public void setSearchSpecials(boolean searchSpecials) {
		this.searchSpecials = searchSpecials;
	}
}
